emacs.git
11 months ago; * etc/PROBLEMS: Document the same problem here.
Po Lu [Tue, 4 Mar 2025 06:29:35 +0000 (14:29 +0800)]
; * etc/PROBLEMS: Document the same problem here.

11 months agoDocument requirements respecting XDG MIME databases on Android
Po Lu [Tue, 4 Mar 2025 06:24:56 +0000 (14:24 +0800)]
Document requirements respecting XDG MIME databases on Android

* doc/emacs/android.texi (Android Software): State that librsvg
requires a MIME database to display embedded images, and how to
acquire such a database.

11 months ago; (completion-preview--try-table): Propagate extra properties.
Eshel Yaron [Sun, 2 Mar 2025 07:03:04 +0000 (08:03 +0100)]
; (completion-preview--try-table): Propagate extra properties.

* lisp/completion-preview.el
(completion-preview--try-table): Let-bind
'completion-extra-properties' to completion properties
that the completion backend (capf) provides, so that these
properties take effect when querying the completion table.
* test/lisp/completion-preview-tests.el
(completion-preview-propagates-properties): Add test.

11 months agoImprove instructions for running with -fsanitize=address (bug#76393)
Pip Cet [Sat, 1 Mar 2025 21:39:23 +0000 (21:39 +0000)]
Improve instructions for running with -fsanitize=address (bug#76393)

* etc/DEBUG (ASAN_OPTIONS): Add 'detect_stack_use_after_return=0'
requirement.  Remove obsolete unexec commentary.

(cherry picked from commit 1e84a8767692f9f3a3bc37eba8eeb8f9d537322d)

11 months ago; Don't document package-x.el
Stefan Kangas [Sun, 2 Mar 2025 04:09:37 +0000 (05:09 +0100)]
; Don't document package-x.el

* doc/lispref/package.texi (Package Archives): Delete documentation on
package-x.el, since it's obsolete in Emacs 31 and we want to discourage
its use.

11 months ago; Document spurious warnings on macOS 15
Stefan Kangas [Sun, 2 Mar 2025 03:34:27 +0000 (04:34 +0100)]
; Document spurious warnings on macOS 15

* etc/PROBLEMS: Document spurious warnings on macOS 15.  (Bug#73382)

11 months agoFix the use of xref-window-local-history together with Xref buffer
Dmitry Gutov [Sun, 2 Mar 2025 03:22:56 +0000 (05:22 +0200)]
Fix the use of xref-window-local-history together with Xref buffer

* lisp/progmodes/xref.el (xref--push-markers): Temporarily
restore the selected window as well, using the value from the
new argument (bug#76565).  Update both callers.

11 months agocompleting-read-multiple: Fix support for ":" as separator
Dmitry Gutov [Sun, 2 Mar 2025 03:13:14 +0000 (05:13 +0200)]
completing-read-multiple: Fix support for ":" as separator

* lisp/emacs-lisp/crm.el (completing-read-multiple):
Do not search for separators inside the prompt (bug#76461).

11 months ago; Improve docstring of cl-check-type
Stefan Kangas [Sun, 2 Mar 2025 03:11:55 +0000 (04:11 +0100)]
; Improve docstring of cl-check-type

* lisp/emacs-lisp/cl-macs.el (cl-check-type): Improve docstring.

11 months ago; * lisp/progmodes/java-ts-mode.el (treesit-node-end): Declare.
Eli Zaretskii [Sat, 1 Mar 2025 14:42:50 +0000 (16:42 +0200)]
; * lisp/progmodes/java-ts-mode.el (treesit-node-end): Declare.

11 months agoFix 'M-q' in 'makefile-mode'
Eli Zaretskii [Sat, 1 Mar 2025 14:04:52 +0000 (16:04 +0200)]
Fix 'M-q' in 'makefile-mode'

* lisp/progmodes/make-mode.el (makefile-mode-map): Bind 'M-q' to
'fill-paragraph', as 'prog-mode's default binding is not
appropriate for Makefile's syntax.  (Bug#76641)

11 months ago; Improve documentation of 'rmail-movemail-program'
Eli Zaretskii [Sat, 1 Mar 2025 13:45:57 +0000 (15:45 +0200)]
; Improve documentation of 'rmail-movemail-program'

* lisp/mail/rmail.el (rmail-movemail-program):
* doc/emacs/rmail.texi (Movemail): Document how to change the
value of 'rmail-movemail-program' safely.  (Bug#76595)

11 months ago; Cleanup sexp things in 'lua-ts-mode'
john muhl [Mon, 24 Feb 2025 21:21:38 +0000 (15:21 -0600)]
; Cleanup sexp things in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Remove some
nonsensical entries from 'treesit-thing-settings'.
* test/lisp/progmodes/lua-ts-mode-resources/movement.erts:
Add missing tests for 'backward-sexp'.  (Bug#76534)

11 months agoFix go-ts-mode const_spec highlighting (Bug#76330)
Randy Taylor [Sun, 16 Feb 2025 20:51:43 +0000 (15:51 -0500)]
Fix go-ts-mode const_spec highlighting (Bug#76330)

* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings):
Handle multiple const_spec identifiers.
* test/lisp/progmodes/go-ts-mode-resources/font-lock.go:
Add test case.

11 months ago; Document what happens when 'display' and 'invisible' props clash
Eli Zaretskii [Sat, 1 Mar 2025 10:59:32 +0000 (12:59 +0200)]
; Document what happens when 'display' and 'invisible' props clash

* doc/lispref/display.texi (Replacing Specs, Overlay Properties)
(Invisible Text): Document that 'invisible' is ignored when
'display' property covers the same text.  (Bug#76658)

11 months agokeymaps.texi: Move "Changing Key Bindings" section up
Stefan Kangas [Sat, 1 Mar 2025 05:34:00 +0000 (06:34 +0100)]
keymaps.texi: Move "Changing Key Bindings" section up

* doc/lispref/keymaps.texi (Changing Key Bindings): Move section
up.  (Bug#52821)

11 months agokeymaps.texi: Move "Key Sequences" section down
Stefan Kangas [Sat, 1 Mar 2025 05:28:17 +0000 (06:28 +0100)]
keymaps.texi: Move "Key Sequences" section down

* doc/lispref/keymaps.texi (Key Sequences): Move section
down.  (Bug#52821)

11 months agoImprove process-get/process-put docstrings
Stefan Kangas [Sat, 1 Mar 2025 01:01:30 +0000 (02:01 +0100)]
Improve process-get/process-put docstrings

* lisp/subr.el (process-get, process-put): Explain the purpose of these
functions in the docstring.

11 months agoMerge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Michael Albinus [Fri, 28 Feb 2025 17:04:35 +0000 (18:04 +0100)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30

11 months agoFix recent change in diff-no-select
Michael Albinus [Fri, 28 Feb 2025 17:03:54 +0000 (18:03 +0100)]
Fix recent change in diff-no-select

* lisp/vc/diff.el (diff-no-select): Keep initial default directory
in *Diff* buffer.

11 months agoPrevent rare freeze on Android 4.2 through 4.4
Po Lu [Fri, 28 Feb 2025 14:36:08 +0000 (22:36 +0800)]
Prevent rare freeze on Android 4.2 through 4.4

* src/android.c (android_run_select_thread, android_init_events)
(android_select): Enable self-pipes on all Android versions <= 21.
The Android C library provides a functioning pselect on these
systems, but it does not apply the signal mask atomically.
(android_run_select_thread): Correct typo.  This never produced
any adverse consequences, as the relevant signals would already
have been blocked by `setupSystemThread'.

Do not merge to master.

11 months ago* lisp/proced.el (proced-<): Check, that NUM1 and NUM2 are numbers.
Michael Albinus [Fri, 28 Feb 2025 14:32:35 +0000 (15:32 +0100)]
* lisp/proced.el (proced-<): Check, that NUM1 and NUM2 are numbers.

(Bug#76549)

12 months ago; * src/keymap.c: Fix last change (bug#75219).
Eli Zaretskii [Sun, 12 Jan 2025 06:24:39 +0000 (08:24 +0200)]
; * src/keymap.c: Fix last change (bug#75219).

(cherry picked from commit 412c1a4f0e1df8c82bd94f02e21c1ef62b3d53d5)

12 months agoFix mouse-2 clicks on mode line and header line
Eli Zaretskii [Sun, 12 Jan 2025 06:22:24 +0000 (08:22 +0200)]
Fix mouse-2 clicks on mode line and header line

* src/keymap.c (Fcurrent_active_maps): For clicks on mode-line and
header-line, always override the keymaps at buffer position.
(Bug#75219)

(cherry picked from commit c41ea047a434710c4b7bc8280695c83fbe5fff35)

12 months agoRecommend secure-hash in md5 docstring
Stefan Kangas [Fri, 28 Feb 2025 04:21:48 +0000 (05:21 +0100)]
Recommend secure-hash in md5 docstring

* src/fns.c (Fmd5): Repeat explanation from manual about md5 being
"semi-obsolete", and recommend using secure-hash instead.

12 months agoImprove docstring of add-hook and remove-hook
Tomas Nordin [Thu, 27 Feb 2025 21:06:25 +0000 (22:06 +0100)]
Improve docstring of add-hook and remove-hook

* lisp/subr.el (add-hook, remove-hook): Remove detail about setting to
nil and talk about functions instead of hooks.  (Bug#72915)

12 months ago* lisp/subr.el (read-key): Add 'tab-line' (bug#76408).
Jared Finder [Wed, 19 Feb 2025 07:41:44 +0000 (09:41 +0200)]
* lisp/subr.el (read-key): Add 'tab-line' (bug#76408).

Backport:
(cherry picked from commit 0c8abe8bb5072c46a93585cb325c249f85f3d9c2)

12 months agoFix fns-tests-collate-strings failure with musl
Paul Eggert [Thu, 27 Feb 2025 18:57:19 +0000 (10:57 -0800)]
Fix fns-tests-collate-strings failure with musl

* test/src/fns-tests.el (fns-tests-collate-strings):
Don’t assume "en_XY.UTF-8", or any particular string,
is an invalid locale, as they all seem to be valid in musl.
Instead, simply test that a non-string is invalid.
(Bug#76550)

12 months ago; (completion-preview-complete): Fix bug#76606
Eshel Yaron [Thu, 27 Feb 2025 14:34:24 +0000 (15:34 +0100)]
; (completion-preview-complete): Fix bug#76606

* lisp/completion-preview.el (completion-preview-complete):
Dismiss completion preview before calling ':exit-function'.
This eliminates potential flicker with slow exit functions
and avoids the broken preview update reported in bug#76606.

12 months ago; Fix indentation in cl.texi example
Stefan Kangas [Wed, 26 Feb 2025 17:31:48 +0000 (18:31 +0100)]
; Fix indentation in cl.texi example

12 months ago; Fix my last commit
Stefan Kangas [Wed, 26 Feb 2025 16:49:56 +0000 (17:49 +0100)]
; Fix my last commit

12 months agoFix setup of coding-systems on MS-Windows
Eli Zaretskii [Sun, 5 Jan 2025 05:56:27 +0000 (07:56 +0200)]
Fix setup of coding-systems on MS-Windows

* src/emacs.c (main) [HAVE_PDUMPER] [WINDOWSNT]: Call
'w32_init_file_name_codepage' again after loading the pdumper
file.
* src/w32.c (w32_init_file_name_codepage) [HAVE_PDUMPER]:
Reinitialize additional variables.  (Bug#75207)

(cherry picked from commit cc5cd4de93d1e5ba205cbf0c370aef4559bc342b)

12 months ago; Fix documentation of 'buffer-text-pixel-size'
Eli Zaretskii [Wed, 26 Feb 2025 12:52:26 +0000 (14:52 +0200)]
; Fix documentation of 'buffer-text-pixel-size'

* doc/lispref/display.texi (Size of Displayed Text): Fix arguments
of 'buffer-text-pixel-size'.  (Bug#76519)

12 months ago; Minor Android documentation improvements
Po Lu [Wed, 26 Feb 2025 07:10:27 +0000 (15:10 +0800)]
; Minor Android documentation improvements

* doc/emacs/android.texi (Android Startup, Android File System)
(Android Document Providers): Improve phrasing.

12 months ago; Fix up emacs-lisp-mode docstring
Stefan Kangas [Wed, 26 Feb 2025 02:31:57 +0000 (03:31 +0100)]
; Fix up emacs-lisp-mode docstring

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode, lisp-interaction-mode):
Fix up docstring slightly by removing redundant and misplaced word
"Commands", and prefix list with dashes.

12 months ago; Fix completion-fail-discreetly docstring typo.
Basil L. Contovounesios [Tue, 25 Feb 2025 10:26:11 +0000 (11:26 +0100)]
; Fix completion-fail-discreetly docstring typo.

12 months agoFix ert-font-lock macro signatures
Basil L. Contovounesios [Thu, 20 Feb 2025 09:29:54 +0000 (10:29 +0100)]
Fix ert-font-lock macro signatures

* doc/misc/ert.texi (Syntax Highlighting Tests):
* test/lisp/emacs-lisp/ert-font-lock-tests.el
(test-line-comment-p--emacs-lisp, test-line-comment-p--shell-script)
(test-line-comment-p--javascript, test-line-comment-p--python)
(test-line-comment-p--c, test-macro-test--correct-highlighting)
(test-macro-test--docstring, test-macro-test--failing)
(test-macro-test--file, test-macro-test--file-no-asserts)
(test-macro-test--file-failing): Reindent macro calls.
(with-temp-buffer-str-mode): Evaluate macro arguments left-to-right.
(ert-font-lock--wrap-begin-end): Use rx for more robust composition.
(test-line-comment-p--php): Require that php-mode is callable, not
already loaded.

* lisp/emacs-lisp/ert-font-lock.el (ert-font-lock-deftest)
(ert-font-lock-deftest-file): NAME is not followed by an empty list
like in ert-deftest, so the optional DOCSTRING is actually the
second argument.  Adapt calling convention in docstring, and debug,
doc-string, and indent properties accordingly (bug#76372).  Fix
docstring grammar, document MAJOR-MODE, and avoid referring to a
file name as a path.

12 months agoFix a typo in 'window_text_pixel_size'
Eli Zaretskii [Mon, 24 Feb 2025 19:02:14 +0000 (21:02 +0200)]
Fix a typo in 'window_text_pixel_size'

This typo caused strange mis-behaviors in buffers
with non-ASCII characters.
* src/xdisp.c (window_text_pixel_size): Fix typo.  (Bug#76519)

12 months ago; Add Rudolf Schlatte to authors.el
Stefan Kangas [Mon, 24 Feb 2025 17:26:14 +0000 (18:26 +0100)]
; Add Rudolf Schlatte to authors.el

* admin/authors.el (authors-aliases): Add Rudolf Schlatte.

12 months ago* doc/misc/efaq.texi (New in Emacs 30): Fix typo. (Bug#76518)
Ulrich Müller [Mon, 24 Feb 2025 09:32:47 +0000 (10:32 +0100)]
* doc/misc/efaq.texi (New in Emacs 30): Fix typo.  (Bug#76518)

12 months ago; * etc/images/README (Files): Add an entry for last-page.xpm
Sean Whitton [Mon, 24 Feb 2025 06:20:44 +0000 (14:20 +0800)]
; * etc/images/README (Files): Add an entry for last-page.xpm

12 months ago; Reflow some cl-lib docstrings
Stefan Kangas [Mon, 24 Feb 2025 02:45:18 +0000 (03:45 +0100)]
; Reflow some cl-lib docstrings

* lisp/emacs-lisp/cl-macs.el (cl-flet, cl-labels): Reflow docstrings.

12 months ago; * etc/TODO: New section "Make it easier to contribute".
Stefan Kangas [Sun, 23 Feb 2025 05:19:26 +0000 (06:19 +0100)]
; * etc/TODO: New section "Make it easier to contribute".

12 months agoUpgrade out-of-date VC package dependencies
Joseph Turner [Sat, 12 Oct 2024 23:10:02 +0000 (01:10 +0200)]
Upgrade out-of-date VC package dependencies

* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Pass
the specified package version when checking if a package is installed.

(Bug#73781)

(cherry picked from commit 71a4670a9fa238f920ce88b938f703b605ad2f48)

12 months agoConstant highlighting no longer captures Java annotations
Vincenzo Pupillo [Wed, 22 Jan 2025 15:14:41 +0000 (16:14 +0100)]
Constant highlighting no longer captures Java annotations

* lisp/progmodes/java-ts-mode.el
(java-ts-mode--fontify-constant): New function.
(java-ts-mode--font-lock-settings): Use it.

12 months agoImprove wording of lsh docstring
Stefan Kangas [Sat, 22 Feb 2025 17:15:37 +0000 (18:15 +0100)]
Improve wording of lsh docstring

* lisp/subr.el (lsh): Improve wording of docstring.

12 months ago; * admin/check-doc-strings: Add note for future development.
Stefan Kangas [Sat, 22 Feb 2025 13:41:34 +0000 (14:41 +0100)]
; * admin/check-doc-strings: Add note for future development.

12 months agoDon't document deleted xwidget functions
Stefan Kangas [Sat, 22 Feb 2025 03:16:21 +0000 (04:16 +0100)]
Don't document deleted xwidget functions

* doc/lispref/display.texi (Xwidgets): Don't document deleted function
xwidget-webkit-execute-script-rv.  Fix name of deleted and then re-added
function xwidget-webkit-title.

12 months ago; Improve lsh and ash documented argument names
Stefan Kangas [Sat, 22 Feb 2025 02:41:41 +0000 (03:41 +0100)]
; Improve lsh and ash documented argument names

* doc/lispref/numbers.texi (Bitwise Operations): Improve lsh and
ash argument names.

12 months agoUse a persistent directory as default directory in diff
Michael Albinus [Fri, 21 Feb 2025 13:47:15 +0000 (14:47 +0100)]
Use a persistent directory as default directory in diff

* lisp/vc/diff.el (diff-no-select): Use `temporary-file-directory'
as default directory.  Set default file permissions temporarily to
#o600.  (Bug#69606)

(cherry picked from commit ae439cc1b9f428a8247548f4ef3b992608a3c09b)

12 months agoSync build-aux/update-copyright from Gnulib
Stefan Kangas [Thu, 20 Feb 2025 10:14:35 +0000 (11:14 +0100)]
Sync build-aux/update-copyright from Gnulib

* build-aux/update-copyright: Copy from Gnulib.  This fixes a bug
where troff markers were introduced in ChangeLog files.
(Do not merge to master.)

12 months agoMinor refactoring in admin/admin.el
Stefan Kangas [Thu, 20 Feb 2025 01:13:29 +0000 (02:13 +0100)]
Minor refactoring in admin/admin.el

* admin/admin.el (admin--read-root-directory):
(admin--read-version): New functions.
(add-release-logs, set-version, set-copyright, make-manuals)
(make-manuals-dist, make-news-html-file): Use above new function.

12 months ago; * admin/make-tarball.txt: Copy edits.
Stefan Kangas [Thu, 20 Feb 2025 00:53:57 +0000 (01:53 +0100)]
; * admin/make-tarball.txt: Copy edits.

12 months agoBump Emacs version to 30.1.50
Stefan Kangas [Sun, 23 Feb 2025 19:39:42 +0000 (20:39 +0100)]
Bump Emacs version to 30.1.50

* README:
* configure.ac:
* etc/NEWS:
* exec/configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 30.1.50.

12 months agoRelease Emacs 30.1
Stefan Kangas [Sun, 23 Feb 2025 16:29:57 +0000 (17:29 +0100)]
Release Emacs 30.1

* ChangeLog.5: New file.
* Makefile.in (CHANGELOG_HISTORY_INDEX_MAX): Bump.
* etc/HISTORY: Add Emacs 30.1.

12 months ago; * ChangeLog.4: Update.
Stefan Kangas [Sun, 23 Feb 2025 16:19:47 +0000 (17:19 +0100)]
; * ChangeLog.4: Update.

12 months agoMention CVE-2025-1244 in NEWS
Stefan Kangas [Sun, 23 Feb 2025 15:25:37 +0000 (16:25 +0100)]
Mention CVE-2025-1244 in NEWS

* etc/NEWS: Document CVE-2025-1244.

For anyone looking to backport this, the fix is in commit
820f0793f0b46448928905552726c1f1b999062f.

12 months agoUse character position for ranges in treesit_sync_visible_region
Yuan Fu [Sun, 23 Feb 2025 07:24:38 +0000 (23:24 -0800)]
Use character position for ranges in treesit_sync_visible_region

* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.

12 months ago; * admin/authors.el (authors-aliases): Add Vladimir Nikishkin.
Eli Zaretskii [Sat, 22 Feb 2025 10:07:16 +0000 (12:07 +0200)]
; * admin/authors.el (authors-aliases): Add Vladimir Nikishkin.

12 months ago; * INSTALL.REPO: Minor copyedits.
Eli Zaretskii [Sat, 22 Feb 2025 07:16:05 +0000 (09:16 +0200)]
; * INSTALL.REPO: Minor copyedits.

12 months ago; Don't fail image tests if jpeg is supported via imagemagick
Ulrich Müller [Fri, 21 Feb 2025 11:13:20 +0000 (12:13 +0100)]
; Don't fail image tests if jpeg is supported via imagemagick

* test/lisp/image-tests.el (image-supported-file-p/optional):
Consider also the imagemagick case.  (Bug#76465)

12 months ago; Skip autorevert test when notify support is missing
Ulrich Müller [Fri, 21 Feb 2025 08:15:50 +0000 (09:15 +0100)]
; Skip autorevert test when notify support is missing

* test/lisp/autorevert-tests.el
(auto-revert-test07-auto-revert-several-buffers): Skip if file
notification support is not available.  (Bug#76459)

12 months ago; Skip shr-test/zoom-image test if png or libxml support is missing
Ulrich Müller [Fri, 21 Feb 2025 09:36:52 +0000 (10:36 +0100)]
; Skip shr-test/zoom-image test if png or libxml support is missing

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if png
images or libxml are not supported.  (Bug#76464)

12 months ago; Skip image type test if support is missing
Ulrich Müller [Fri, 21 Feb 2025 08:58:16 +0000 (09:58 +0100)]
; Skip image type test if support is missing

* test/lisp/image-tests.el (image-type-from-file-name): Skip if
image types are not available.  (Bug#76462)

12 months agoFix reported Haiku build error in emacs-30.1-rc1
Po Lu [Fri, 21 Feb 2025 05:28:52 +0000 (13:28 +0800)]
Fix reported Haiku build error in emacs-30.1-rc1

* src/haiku_support.cc (keysym_from_raw_char): Don't define
duplicate cases on the previous release.

12 months ago; Delete troff markers from ChangeLog files
Stefan Kangas [Thu, 20 Feb 2025 01:46:43 +0000 (02:46 +0100)]
; Delete troff markers from ChangeLog files

12 months ago; * Update 'ldefs-boot.el' (do not merge)
Stefan Kangas [Thu, 20 Feb 2025 01:36:41 +0000 (02:36 +0100)]
; * Update 'ldefs-boot.el' (do not merge)

12 months agoBump Emacs version to 30.1
Stefan Kangas [Wed, 19 Feb 2025 23:47:07 +0000 (00:47 +0100)]
Bump Emacs version to 30.1

* README:
* configure.ac:
* exec/configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 30.1.

12 months agoUpdate files for Emacs 30.1
Stefan Kangas [Wed, 19 Feb 2025 23:46:32 +0000 (00:46 +0100)]
Update files for Emacs 30.1

* ChangeLog.4:
* etc/AUTHORS: Update for Emacs 30.1.

12 months ago; Fix typo introduced in "* ChangeLog.4: Reformat down to 28 March 2024."
Stefan Kangas [Wed, 19 Feb 2025 23:30:15 +0000 (00:30 +0100)]
; Fix typo introduced in "* ChangeLog.4: Reformat down to 28 March 2024."

12 months agoFix remaining Android bugs reported over the past months
Po Lu [Wed, 19 Feb 2025 12:40:12 +0000 (20:40 +0800)]
Fix remaining Android bugs reported over the past months

* java/org/gnu/emacs/EmacsActivity.java (attachWindow):
Guarantee that child windows promoted to toplevels receive
layout parameters that direct them to receive their parents'
dimensions.  Otherwise, the size of the window as a child is
retained on Huawei HarmonyOS 4.2 and possibly other Android
distributions.

* java/org/gnu/emacs/EmacsService.java (updateCursorAnchorInfo):
Run anchor updates on the UI thread, as
`InputMethodManager#updateCursorAnchorInfo' is liable to call
`View#requestLayout'.

* java/org/gnu/emacs/EmacsView.java (onMeasure): Always call
`measureChildren', or child frames' onLayout handlers might not
be invoked after they request a layout cycle and are duly
processed in `onLayout'.
(swapBuffers): Delete erroneous commentary.

* java/org/gnu/emacs/EmacsWindow.java (viewLayout): If
overrideRedirect, don't inadvertently clear rect.left and
rect.top by recording the window's WM window-relative position.
Fix typos.
(reparentTo): Invalidate focus after transferring frame.
(translateCoordinates): Account for override-redirect windows.
Mostly important for mouse-drag-and-drop-region.

12 months agoProperly move existing tooltips on Android
Po Lu [Wed, 19 Feb 2025 07:34:51 +0000 (15:34 +0800)]
Properly move existing tooltips on Android

* java/org/gnu/emacs/EmacsWindow.java (requestViewLayout): If an
override redirect window, additionally notify the window manager
of layout changes.

12 months ago; * ChangeLog.4: Reformat down to 28 March 2024.
Po Lu [Wed, 19 Feb 2025 07:33:59 +0000 (15:33 +0800)]
; * ChangeLog.4: Reformat down to 28 March 2024.

12 months ago; * ChangeLog.4: Check in ommitted change.
Po Lu [Tue, 18 Feb 2025 12:50:03 +0000 (20:50 +0800)]
; * ChangeLog.4: Check in ommitted change.

12 months ago; * ChangeLog.4: Fix log entries down to the 1 May 2024.
Po Lu [Tue, 18 Feb 2025 12:47:32 +0000 (20:47 +0800)]
; * ChangeLog.4: Fix log entries down to the 1 May 2024.

12 months ago; Fix typos
Stefan Kangas [Mon, 27 Jan 2025 05:46:01 +0000 (06:46 +0100)]
; Fix typos

12 months ago; * ChangeLog.4: Update.
Stefan Kangas [Sun, 16 Feb 2025 21:32:29 +0000 (22:32 +0100)]
; * ChangeLog.4: Update.

12 months ago; * admin/authors.el (authors-ignored-files): Ignore gnus-nocem.el.
Stefan Kangas [Sun, 16 Feb 2025 21:32:08 +0000 (22:32 +0100)]
; * admin/authors.el (authors-ignored-files): Ignore gnus-nocem.el.

12 months agoFix crash in frame deletion on Android
Po Lu [Mon, 17 Feb 2025 03:33:50 +0000 (11:33 +0800)]
Fix crash in frame deletion on Android

* java/org/gnu/emacs/EmacsWindow.java (destroyHandle):
Invalidate the input focus in the UI thread, as is proper.

12 months ago* src/pgtkterm.c (pgtk_enumerate_devices): Circumvent bug#76239.
Po Lu [Mon, 17 Feb 2025 02:56:37 +0000 (10:56 +0800)]
* src/pgtkterm.c (pgtk_enumerate_devices): Circumvent bug#76239.

12 months ago* lisp/man.el (Man-shell-file-name): Ensure a Bourne shell. (Bug#75308)
Michael Albinus [Sun, 16 Feb 2025 10:00:46 +0000 (11:00 +0100)]
* lisp/man.el (Man-shell-file-name): Ensure a Bourne shell.  (Bug#75308)

12 months ago; Update etc/AUTHORS (bug#76319).
Eli Zaretskii [Sun, 16 Feb 2025 07:03:06 +0000 (02:03 -0500)]
; Update etc/AUTHORS (bug#76319).

12 months ago; * admin/authors.el (authors-aliases): Add "Elías Gabriel Pérez" (bug#76319).
Eli Zaretskii [Sun, 16 Feb 2025 06:49:12 +0000 (08:49 +0200)]
; * admin/authors.el (authors-aliases): Add "Elías Gabriel Pérez" (bug#76319).

12 months ago; * doc/emacs/package.texi (Package Installation): Add omitted index entry.
Eli Zaretskii [Sat, 15 Feb 2025 10:12:30 +0000 (12:12 +0200)]
; * doc/emacs/package.texi (Package Installation): Add omitted index entry.

12 months ago; Move index entries in user manual
Eli Zaretskii [Sat, 15 Feb 2025 10:08:41 +0000 (12:08 +0200)]
; Move index entries in user manual

* doc/emacs/package.texi (Packages): Move index entries from here...
(Package Installation): ...to here.  Index entries should be where
the main description of the subject can be found.

12 months agoAdd two missing NULL checks of malloc'd values on Android
Po Lu [Sat, 15 Feb 2025 08:58:18 +0000 (16:58 +0800)]
Add two missing NULL checks of malloc'd values on Android

* src/android.c (sendDndUri, sendDndText): Verify that allocated
string memory is non-nil before writing to it.

12 months ago; * etc/PROBLEMS: Document how to grant storage permissions on Wear OS.
Po Lu [Sat, 15 Feb 2025 06:46:37 +0000 (14:46 +0800)]
; * etc/PROBLEMS: Document how to grant storage permissions on Wear OS.

12 months ago; * etc/TODO: Rethink finder-known-keywords.
Stefan Kangas [Thu, 13 Feb 2025 21:08:18 +0000 (22:08 +0100)]
; * etc/TODO: Rethink finder-known-keywords.

12 months agoFix (Non)GNU ELPA description in manual
Stefan Kangas [Thu, 13 Feb 2025 15:37:51 +0000 (16:37 +0100)]
Fix (Non)GNU ELPA description in manual

* doc/emacs/package.texi (Packages): Move detailed (Non)GNU ELPA
description...
(Package Installation): ...here, and fix incorrect information.

12 months agoMove 'package-archives' documentation to emacs manual
Stefan Kangas [Thu, 13 Feb 2025 15:36:40 +0000 (16:36 +0100)]
Move 'package-archives' documentation to emacs manual

* doc/lispref/package.texi (Package Archives): Move documentation
of package-archives variable from here...
* doc/emacs/package.texi (Package Installation): ...to here.
(Bug#76266)

12 months ago; * src/fns.c (Fmapconcat): Doc fix (bug#76242).
Eli Zaretskii [Thu, 13 Feb 2025 09:03:26 +0000 (11:03 +0200)]
; * src/fns.c (Fmapconcat): Doc fix (bug#76242).

12 months ago; Fix >72 character long lines in docstring
Stefan Kangas [Thu, 13 Feb 2025 07:45:42 +0000 (08:45 +0100)]
; Fix >72 character long lines in docstring

12 months ago; Change "virus" to "malicious" in lispref
Stefan Kangas [Thu, 13 Feb 2025 02:02:39 +0000 (03:02 +0100)]
; Change "virus" to "malicious" in lispref

* doc/lispref/functions.texi (Function Safety): Replace 'virus' with
'malicious' to ensure broader accuracy, as 'malicious' encompasses all
harmful software types.

12 months agoDocument (Non-)GNU ELPA in emacs manual
Stefan Kangas [Wed, 12 Feb 2025 15:38:15 +0000 (16:38 +0100)]
Document (Non-)GNU ELPA in emacs manual

* doc/emacs/package.texi (Packages): Document GNU ELPA and NonGNU
ELPA.  (Bug#59609)

12 months ago; * .mailmap: Add entry for Thuna. (Bug#76221)
Stefan Kangas [Wed, 12 Feb 2025 14:33:32 +0000 (15:33 +0100)]
; * .mailmap: Add entry for Thuna.  (Bug#76221)

Note that this is deliberately different from the display in
AUTHORS, on request from the author.

12 months agoFix author name
Robert Pluim [Wed, 12 Feb 2025 13:00:55 +0000 (14:00 +0100)]
Fix author name

* admin/authors.el (authors-aliases): Fix entry for
"thuna.cing@gmail.com"  (Bug#76221).

12 months agoUse c-ts-common's comment setup in go-ts-mode (bug#75978)
Yuan Fu [Wed, 12 Feb 2025 04:38:00 +0000 (20:38 -0800)]
Use c-ts-common's comment setup in go-ts-mode (bug#75978)

c-ts-common-comment-setup sets up fill-paragraph-function, which
enables filling for comments.

* lisp/progmodes/go-ts-mode.el (go-ts-mode):
(go-mod-ts-mode): Use c-ts-common-comment-setup.

12 months agoAdd java-language-server to eglot-server-programs
Robert Brown [Wed, 9 Nov 2022 00:23:10 +0000 (19:23 -0500)]
Add java-language-server to eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Add support for Java
server <https://github.com/georgewfraser/java-language-server>.
(Bug#59138)

Copyright-paperwork-exempt: yes

12 months ago; Add a utility script for retrieving Android port dependencies
Po Lu [Wed, 12 Feb 2025 03:14:29 +0000 (11:14 +0800)]
; Add a utility script for retrieving Android port dependencies

* admin/download-android-deps.sh: New file.

12 months agoEglot: mention ocaml-ts-mode in eglot-server-programs
João Távora [Tue, 11 Feb 2025 13:00:33 +0000 (13:00 +0000)]
Eglot: mention ocaml-ts-mode in eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Mention
ocaml-ts-mode.

(cherry picked from commit 96dc5deddc2b60210feb10e3a68b74ecd2480b34)